package edu.rpi.tw.escience.stargazer.rest;

import org.restlet.Application;
import org.restlet.Context;
import org.restlet.Restlet;
import org.restlet.Router;

/**
 * Author: josh
 * Date: Apr 27, 2009
 * Time: 11:49:49 PM
 */
public class CelestialObjectApplication extends Application {
    public CelestialObjectApplication(final Context context) {
        super(context);
    }

    @Override
    public Restlet createRoot() {
        Router router = new Router(getContext());

        router.attach("/", CelestialObjectResource.class);

        return router;
    }
}

